package com.foxchen.offline.task.config;


import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Getter
@Setter
@ToString
@ConfigurationProperties(prefix = "foxchen.offline.task")
public class OfflineTaskConfig {
    private Boolean enabled;

    /**
     * 核心线程
     */
    private Integer corePoolSize = 5;

    /**
     * 最大线程
     */
    private Integer maximumPooSize = 10;

    /**
     * 空闲线程存活时间
     */
    private Integer keepAliveTime = 60;

    /**
     * 线程队列大小
     */
    private Integer queueCapacity = 1000;

    /**
     * 单个sheet页超过多少后会拆分excel
     */
    private Integer singleSheetMaxLine = 100000;

    /**
     * 到处目录 默认项目目录的export-data
     */
    private String exportPath = "export-data";

    /**
     * 模块名，默认公共模块
     */
    private String moduleName = "common";
}
